package top.revery.task.dto;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import top.revery.api.entity.task.BaseLogTask;

/**
 * @author denghao
 * @title
 * @package
 * @date 2019/12/14 14:03
 */
public interface LogTaskDto extends JpaRepository<BaseLogTask,Long>,JpaSpecificationExecutor<BaseLogTask> {
      @Query(value = "select count(t) from BaseLogTask t where t.taskId=?1")
      Long countTaskId(Long taskId);
}
